package pe.edu.unmsm.fisi.sisconteg.business.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import pe.edu.unmsm.fisi.sisconteg.business.service.GradoTesisService;
import pe.edu.unmsm.fisi.sisconteg.domain.model.GradoTesis;
import pe.edu.unmsm.fisi.sisconteg.repository.dao.GradoTesisDAO;

@Service
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public class GradoTesisServiceImpl implements GradoTesisService {

	@Resource
	private GradoTesisDAO gradoTesisDAO;

	@Override
	public GradoTesis getxId(Integer idGradoTesis) throws DataAccessException {
		return gradoTesisDAO.getxId(idGradoTesis);
	}

	@Override
	public List<GradoTesis> getListGradosTesis() throws DataAccessException {
		return gradoTesisDAO.getListGradosTesis();
	}

	@Override
	public GradoTesis getxNombre(String nombreGradoTesis)
			throws DataAccessException {
		return gradoTesisDAO.getxNombre(nombreGradoTesis);
	}

}
